package com.efast.dmom.mes.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.efast.dmom.mes.bean.OperationWorkorder;
import com.efast.dmom.mes.bean.ResultBean;
import com.efast.dmom.mes.service.OperationWorkorderService;

@RestController
@RequestMapping("/operationWorkorder")
public class OperationWorkorderController {
	@Autowired
	private OperationWorkorderService operationWorkorderService;
	
	@RequestMapping("/batchSave")
	public ResultBean batchAddData(@RequestBody OperationWorkorder operationWorkorder) {
		ResultBean batchAddData = operationWorkorderService.batchAddData(operationWorkorder);
		return batchAddData;
	}

	@RequestMapping("/updateQuality")
	public ResultBean updateQuality(@RequestBody OperationWorkorder operationWorkorder) {
		ResultBean updateQuatity = operationWorkorderService.updateQuatity(operationWorkorder);
		return updateQuatity;
	}
}
